/** \file
 *
 *  ROS driver node for the lidar209 3D LIDARs.
 */

#include <rclcpp/rclcpp.hpp>
#include <memory>
#include "driver.h"

int main(int argc, char** argv)
{
    // Force flush of the stdout buffer.
    setvbuf(stdout, nullptr, _IONBF, BUFSIZ);

    rclcpp::init(argc, argv);

    rclcpp::spin(
                std::make_shared<lidar209_driver::lidar209Driver>(
                    rclcpp::NodeOptions()));

    rclcpp::shutdown();
    return 0;
}

